#ifndef __TLV5618A_H__
#define __TLV5618A_H__

#include "main.h"

struct Tlv5618
{
	void (*setCs)(uint8_t);
	void (*spiTransmit)(uint16_t);
};

extern void tlv5618_setOutA(struct Tlv5618 *ctx, uint16_t val);
extern void tlv5618_setOutB(struct Tlv5618 *ctx, uint16_t val);
extern void tlv5618_setPowerDown(struct Tlv5618 *ctx);
extern void tlv5618_init(struct Tlv5618 *ctx, void (*setCs)(uint8_t), void (*spiTransmit)(uint16_t));


#endif //__TLV5618A_H__
